package com.ruoyi.file.domain.po;

import com.alibaba.fastjson2.annotation.JSONCompiled;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName file_pro_col
 */
@TableName(value ="file_pro_col")
@Data
public class FileProCol implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 所在项目id
     */
    @TableField(value = "project_id")
    private Long projectId;

    /**
     * 表id
     */
    @TableField(value = "columns_id")
    private Long columnsId;

    /**
     * 小分类id
     */
    @TableField(value = "issue_id")
    private Long issueId;

    /**
     * 文件路径
     */
    @TableField(value = "url")
    private String url;

    /**
     * 资源原始名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 新文件名
     */
    @TableField(value = "file_name")
    private String fileName;

    /**
     * 文件后缀
     */
    @TableField(value = "suffix")
    private String suffix;

    /**
     * 是不是图片
     */
    @TableField(value = "is_img")
    private String isImg;

    /**
     * 文件大小
     */
    @TableField(value = "size")
    private Double size;

    /**
     * 文件类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 上传时间
     */
    @TableField(value = "put_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date putTime;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 来源
     */
    @TableField(value = "source")
    private String source;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}